package cn.itcast.service;

import cn.itcast.entity.PageResult;
import cn.itcast.pojo.Role;

import java.util.List;

public interface RoleService {

    void saveRole(Role role, Integer[] permissionIds, Integer[] menuIds);

    void deleteRole(Integer roleId);

    void updateUser(Role role, Integer[] permissionIds, Integer[] menuIds);

    List<Role> selectRoleAll();

    Role selectByIdRole(Integer id);

    Integer[] selectByIdRoleMenu(Integer id);

    Integer[] selectByIdRolePermission(Integer id);

    PageResult selectByNameRole(Integer currentPage, Integer pageSize, Long total, String queryString);
}
